﻿using System.IO;
using System.Threading.Tasks;

namespace KouDai.Core.Engine
{
    public abstract class LocalFileAdapter
    {
        public static LocalFileAdapter Current
        {
            get;
            set;
        }

        public abstract Task SaveFileAsync(string fileName, string contents);

        public abstract Task<string> LoadStrAsync(string fileName);

        public abstract Task SaveFileAsync(string fileName, byte[] fileBytes);

        public abstract Task<Stream> LoadFileAsync(string folderName,string fileName);

        public abstract Task CreateFolder(string folderName);
    }
}
